<template>
	<div>

	
	<div >
		<div class="my-body">
			<div class="ipt_a">
				<div style="float: left; line-height: 30px;"  class="tab_font-size">积分状态：</div>
				<el-select v-model="value" placeholder="请选择授权状态"  style=" width: 150px;">
					<el-option label="全部" value="beijing"></el-option>
					<el-option label="初审中" value="shanghai"></el-option>
					<el-option label="复审中" value="beijing"></el-option>
				    <el-option label="终审中" value="beijing"></el-option>
				    <el-option label="复刻中" value="shanghai"></el-option>
				    <el-option label="复刻中..." value="beijing"></el-option>
					<el-option label="驳回" value="beijing"></el-option>
					
				</el-select>
			</div>
			<div class="ipt_a">
				<div style="float: left; line-height: 30px;"  class="tab_font-size">申请类型：</div>
				<el-select v-model="value" placeholder="请选择授权状态" style=" width: 150px;">
					<el-option label="全部" value="beijing"></el-option>
					<el-option label="单台积分" value="shanghai"></el-option>
					<el-option label="首植" value="beijing"></el-option>
				   
				</el-select>
			</div>
			
			<div class="ipt_a">
				<div style="float: left; line-height: 30px;"  class="tab_font-size">医院地区：</div>
				<el-input v-model="input" placeholder="请输入内容" style=" width: 150px;height: 50px; float: left;"></el-input>
			</div>
			<div class="ipt_a">
				<div style="float: left; line-height: 30px;"  class="tab_font-size">经销商：</div>
				<el-input v-model="input" placeholder="请输入内容" style=" width: 150px;height: 50px; float: left;"></el-input>
			</div>
			<div>
				
			
				<el-button type="primary" plain>查询</el-button>
				<el-button>清空</el-button>
			      
				<div style="margin-top: 30px;">
					<div>
						
						<el-button type="primary" plain>CSV数据导出</el-button>
						
					</div>
					
					<template>
						<el-table :data="tableData.slice((currentPage-1)*pageSize,currentPage*pageSize)" border style="width: 100%;margin-top: 30px;" :header-cell-style="{background:'#f5f7fa',color:'#606266'}">
							<el-table-column fixed prop="bianhao" label="申请编号" width="150">
							</el-table-column>
							<el-table-column prop="senddate" label="申请日期" width="120">
							</el-table-column>
							
							<el-table-column prop="name" label="经销商" width="120">
							</el-table-column>
							<el-table-column prop="province" label="授权医院或地区" width="120">
							</el-table-column>
							<el-table-column prop="address" label="积分状态" width="200">
							</el-table-column>
							<el-table-column prop="shouqfang" label="达标单台积分" width="200">
								
							</el-table-column>
							<el-table-column prop="jingxiaos" label="未达标单台积分" width="200">
							</el-table-column>
							<el-table-column prop="peisonf" label="订单积分使用" width="200">
							</el-table-column>
							<el-table-column prop="peisonf" label="Q1植入执行*" width="200">
							</el-table-column>
							<el-table-column prop="peisonf" label="Q2植入执行*" width="200">
							</el-table-column>
							<el-table-column prop="peisonf" label="Q3植入执行*" width="200">
							</el-table-column>
							<el-table-column prop="peisonf" label="Q4植入执行*" width="200">
							</el-table-column>
							<el-table-column prop="peisonf" label="首植台数" width="200">
							</el-table-column>
							<el-table-column prop="peisonf" label="首植积分" width="200">
							</el-table-column>
							<el-table-column prop="peisonf" label="备注" width="200">
							</el-table-column>
						</el-table>
						<el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange"
							:current-page="currentPage" :page-sizes="[5]" :page-size="pageSize"
							:total="tableData.length" layout="total, sizes, prev, pager, next, jumper">
						</el-pagination>
					</template>
					
				</div>
			
				
			</div>
			
		</div>
		
		
		<div class="my-body">
			<div class="ipt_a">
				<div style="float: left; line-height: 30px;" class="tab_font-size">积分状态：</div>
				<el-select v-model="value" placeholder="请选择授权状态" style=" width: 150px;">
					<el-option label="全部" value="beijing"></el-option>
					<el-option label="初审中" value="shanghai"></el-option>
					<el-option label="复审中" value="beijing"></el-option>
				    <el-option label="终审中" value="beijing"></el-option>
				    <el-option label="复刻中" value="shanghai"></el-option>
				    <el-option label="复刻中..." value="beijing"></el-option>
					<el-option label="驳回" value="beijing"></el-option>
					
				</el-select>
			</div>
			<div class="ipt_a">
				<div style="float: left; line-height: 30px;" class="tab_font-size">申领年度：</div>
				<el-date-picker v-model="value1" type="date" placeholder="选择日期" style=" width: 150px;">
				</el-date-picker>
			</div>
			
			<div class="ipt_a">
				<div style="float: left; line-height: 30px;" class="tab_font-size">医院地区：</div>
				<el-input v-model="input" placeholder="请输入内容" style=" width: 150px;height: 50px; float: left;"></el-input>
			</div>
			<div class="ipt_a">
				<div style="float: left; line-height: 30px;" class="tab_font-size">经销商：</div>
				<el-input v-model="input" placeholder="请输入内容" style=" width: 150px;height: 50px; float: left;"></el-input>
			</div>
			<div>
				
			
				<el-button type="primary" plain>查询</el-button>
				<el-button>清空</el-button>
			      
				<div style="margin-top: 30px;">
					<div>
						
						<el-button type="primary" plain>CSV数据导出</el-button>
						
					</div>
					
					<template>
						<el-table :data="tableData.slice((currentPage-1)*pageSize,currentPage*pageSize)"
							 border style="width: 100%;margin-top: 30px;" :header-cell-style="{background:'#f5f7fa',color:'#606266'}">
							<el-table-column fixed prop="bianhao" label="申请编号" width="150">
							</el-table-column>
							<el-table-column prop="senddate" label="申请日期" width="120">
							</el-table-column>
							
							<el-table-column prop="name" label="经销商" width="120">
							</el-table-column>
							<el-table-column prop="province" label="授权医院或地区" width="120">
							</el-table-column>
							<el-table-column prop="address" label="积分状态" width="200">
							</el-table-column>
							<el-table-column prop="shouqfang" label="达标单台积分" width="200">
								
							</el-table-column>
							<el-table-column prop="jingxiaos" label="未达标单台积分" width="200">
							</el-table-column>
							<el-table-column prop="peisonf" label="订单积分使用" width="200">
							</el-table-column>
							<el-table-column prop="peisonf" label="Q1植入执行*" width="200">
							</el-table-column>
							<el-table-column prop="peisonf" label="Q2植入执行*" width="200">
							</el-table-column>
							<el-table-column prop="peisonf" label="Q3植入执行*" width="200">
							</el-table-column>
							<el-table-column prop="peisonf" label="Q4植入执行*" width="200">
							</el-table-column>
							<el-table-column prop="peisonf" label="首植台数" width="200">
							</el-table-column>
							<el-table-column prop="peisonf" label="首植积分" width="200">
							</el-table-column>
							<el-table-column prop="peisonf" label="备注" width="200">
							</el-table-column>
						</el-table>
						<el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange"
							:current-page="currentPage" :page-sizes="[5]" :page-size="pageSize"
							:total="tableData.length" layout="total, sizes, prev, pager, next, jumper">
						</el-pagination>
					</template>
					
				</div>
			
				
			</div>
			
		</div>
		
	</div>
</div>
</template>

<script>
	export default {

		data() {

			return {
				area: false,
				tablisty:false,
				tablistya:false,
				tablistyb:false,
				key: 1, // 为了能每次切换权限的时候重新初始化指令
				options: [{
					value: '1',
					label: '全部'
				}, {
					value: '2',
					label: '一般订单'
				}, {
					value: '3',
					label: '积分订单'
				}, {
					value: '3',
					label: '样品订单'
				}, {
					value: '3',
					label: '换货订单'
				}],
				value1: '',
				value2: '',
				value3: '',
				form: {
					name: '',
					region: '',
					date1: '',
					date2: '',
					delivery: false,
					type: [],
					resource: '',
					desc: ''
				},
				input:"",
				radio: '授权医院',
				value: '',
				tableData: [{
					bianhao: 'PS074107742412L',
					senddate: '2024-05-02',
					enddate: '2024-12-31',
					name: '左心耳',
					province: '完成授权',
					city: '普陀区',
					address: '苏州市中心医院',
					shouqfang: '鹰潭市方园医药有限公司',
					jingxiaos: '鹰潭市方园医药有限公司',
					peisonf: '鹰潭市方园医药有限公司',
					shouqyy: '入院',
					shangcaizhibiao: 3
				}, {
					bianhao: 'PS074107742412L',
					senddate: '2024-05-02',
					enddate: '2024-12-31',
					name: '左心耳',
					province: '完成授权',
					city: '普陀区',
					address: '苏州市中心医院',
					shouqfang: '鹰潭市方园医药有限公司',
					jingxiaos: '鹰潭市方园医药有限公司',
					peisonf: '鹰潭市方园医药有限公司',
					shouqyy: '入院',
					shangcaizhibiao: 3
				}, {
					bianhao: 'PS074107742412L',
					senddate: '2024-05-02',
					enddate: '2024-12-31',
					name: '左心耳',
					province: '完成授权',
					city: '普陀区',
					address: '苏州市中心医院',
					shouqfang: '鹰潭市方园医药有限公司',
					jingxiaos: '鹰潭市方园医药有限公司',
					peisonf: '鹰潭市方园医药有限公司',
					shouqyy: '入院',
					shangcaizhibiao: 3
				}, {
					bianhao: 'PS074107742412L',
					senddate: '2024-05-02',
					enddate: '2024-12-31',
					name: '左心耳',
					province: '完成授权',
					city: '普陀区',
					address: '苏州市中心医院',
					shouqfang: '鹰潭市方园医药有限公司',
					jingxiaos: '鹰潭市方园医药有限公司',
					peisonf: '鹰潭市方园医药有限公司',
					shouqyy: '入院',
					shangcaizhibiao: 3
				}, {
					bianhao: 'PS074107742412L',
					senddate: '2024-05-02',
					enddate: '2024-12-31',
					name: '左心耳',
					province: '完成授权',
					city: '普陀区',
					address: '苏州市中心医院',
					shouqfang: '鹰潭市方园医药有限公司',
					jingxiaos: '鹰潭市方园医药有限公司',
					peisonf: '鹰潭市方园医药有限公司',
					shouqyy: '入院',
					shangcaizhibiao: 3
				}, {
					bianhao: 'PS074107742412L',
					senddate: '2024-05-02',
					enddate: '2024-12-31',
					name: '左心耳',
					province: '完成授权',
					city: '普陀区',
					address: '苏州市中心医院',
					shouqfang: '鹰潭市方园医药有限公司',
					jingxiaos: '鹰潭市方园医药有限公司',
					peisonf: '鹰潭市方园医药有限公司',
					shouqyy: '入院',
					shangcaizhibiao: 3
				}, {
					bianhao: 'PS074107742412L',
					senddate: '2024-05-02',
					enddate: '2024-12-31',
					name: '左心耳',
					province: '完成授权',
					city: '普陀区',
					address: '苏州市中心医院',
					shouqfang: '鹰潭市方园医药有限公司',
					jingxiaos: '鹰潭市方园医药有限公司',
					peisonf: '鹰潭市方园医药有限公司',
					shouqyy: '入院',
					shangcaizhibiao: 3
				}, {
					bianhao: 'PS074107742412L',
					senddate: '2024-05-02',
					enddate: '2024-12-31',
					name: '左心耳',
					province: '完成授权',
					city: '普陀区',
					address: '苏州市中心医院',
					shouqfang: '鹰潭市方园医药有限公司',
					jingxiaos: '鹰潭市方园医药有限公司',
					peisonf: '鹰潭市方园医药有限公司',
					shouqyy: '入院',
					shangcaizhibiao: 3
				}, {
					bianhao: 'PS074107742412L',
					senddate: '2024-05-02',
					enddate: '2024-12-31',
					name: '左心耳',
					province: '完成授权',
					city: '普陀区',
					address: '苏州市中心医院',
					shouqfang: '鹰潭市方园医药有限公司',
					jingxiaos: '鹰潭市方园医药有限公司',
					peisonf: '鹰潭市方园医药有限公司',
					shouqyy: '入院',
					shangcaizhibiao: 3
				}, {
					bianhao: 'PS074107742412L',
					senddate: '2024-05-02',
					enddate: '2024-12-31',
					name: '左心耳',
					province: '完成授权',
					city: '普陀区',
					address: '苏州市中心医院',
					shouqfang: '鹰潭市方园医药有限公司',
					jingxiaos: '鹰潭市方园医药有限公司',
					peisonf: '鹰潭市方园医药有限公司',
					shouqyy: '入院',
					shangcaizhibiao: 3
				}],
				checkAll: false,
				checkedCities: [],
				cities: ['房间隔缺损', '室间隔缺损', '介入输送装置', '动脉导管未闭','抓捕器'],
				isIndeterminate: true,
				currentPage: 1,
				pageSize: 2,

			}
		},
		methods: {
			handleClick(row) {
				console.log(row);
			},
			handleCheckAllChange(val) {
				const cityOptions = ['上海', '北京', '广州', '深圳']
				console.log(val)
				this.checkedCities = val ? cityOptions : [];

				this.isIndeterminate = false;
			},
			handleCheckedCitiesChange(value) {
				let checkedCount = value.length;
				this.checkAll = checkedCount === this.cities.length;
				this.isIndeterminate = checkedCount > 0 && checkedCount < this.cities.length;
			}
		}
	}
</script>

<style lang="scss" scoped>
	.ipt_a {
		width: 240px;
		height: 50px;
		float: left;
	}

	.ipt_b {
		width: 450px;
		height: 50px;
		float: left;
	}
</style>